home *** CD-ROM | disk | FTP | other *** search
- // Filename: SERVICE.CPP
- // "DOCTEMP" Generated by Visual Programmer
- // Author: Blue Sky
-
- //
- // ***********************************************************************
- // Code in this file is initially generated by the Switch-It Module.
- // This file contains functions you can change
- // to provide whatever functionality you require.
- //
- // All actual processing are done in the .WMC file. To override that
- // functionality add your own code in these functions.
- //
- // For more information,
- // see the section "How code is generated" in the documentation.
- //
- // ***********************************************************************
- //
-
- #include "AFXWIN.H"
- #include "DOCTEMP.H"
-
- WMPDEBUG
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
-
- #include "SERVICE.WMC"
-
-
-
-
-
- // ********************************************************
- // ERROR MESSAGE HANDLING
- // ********************************************************
-
- int BLDDisplayMessage(HWND hWnd,UINT uMsg,char *pContext,int iType)
- {
- return BLDDisplayMessageDef(hWnd,uMsg,pContext,iType);
- }
-
-
- // *************************************************************
- // FUNCTIONS FOR DRAWING GRAPHIC BUTTONS
- // *************************************************************
-
- BOOL BLDBitmapToScreen(HDC hDestDC, char *pBitmapName,
- int X,int Y,int nWidth,int nHeight,
- DWORD dwRop,BOOL bStretch)
- {
- return BLDBitmapToScreenDef(hDestDC,pBitmapName,X,Y,nWidth,nHeight,
- dwRop,bStretch);
- }
- BOOL BLDDrawIcon(LPDRAWITEMSTRUCT lpDrawItem,char *pIconName)
- {
- return BLDDrawIconDef(lpDrawItem,pIconName);
- }
-
-
- BOOL BLDDrawBitmap(LPDRAWITEMSTRUCT lpDrawItem,char *pBitmapName,BOOL bStretch)
- {
- return BLDDrawBitmapDef(lpDrawItem,pBitmapName,bStretch);
- }
-
-
- BOOL BLDDrawBkgndIcon(HWND hDlg,LPPAINTSTRUCT pPs,char *pIconName,int iCtrlID)
- {
- return BLDDrawBkgndIconDef(hDlg,pPs,pIconName,iCtrlID);
- }
-
-
- BOOL BLDDrawBkgndBitmap(HWND hDlg,LPPAINTSTRUCT pPs,char *pBitmapName,
- int iCtrlID,BOOL bStretch,BOOL bCtrl,int xScrolled,int yScrolled)
- {
- return BLDDrawBkgndBitmapDef(hDlg,pPs,pBitmapName,iCtrlID,bStretch,
- bCtrl,xScrolled,yScrolled);
- }
-
-
- BOOL BLDDrawAutoState(LPDRAWITEMSTRUCT lpDrawItem,char *szResource,BOOL bBitmap,BOOL bStretch)
- {
- return BLDDrawAutoStateDef(lpDrawItem, szResource, bBitmap, bStretch);
- }
-
-
- BOOL BLDDrawStateBitmap(LPDRAWITEMSTRUCT lpDrawItem,char *szNormal,char *szFocus,
- char *szSelected,char *szDisabled,BOOL bStretch)
- {
- return BLDDrawStateBitmapDef(lpDrawItem,szNormal,szFocus,
- szSelected,szDisabled,bStretch);
- }
-
-
- BOOL BLDDrawStateIcon(LPDRAWITEMSTRUCT lpDrawItem,char *szNormal,char *szFocus,
- char *szSelected,char *szDisabled)
- {
- return BLDDrawStateIconDef(lpDrawItem,szNormal,szFocus,
- szSelected,szDisabled);
- }
-
-
- BOOL BLDDrawItem(HWND hDlg,LPDRAWITEMSTRUCT lpDrawItem)
- {
- return BLDDrawItemDef(hDlg,lpDrawItem);
- }
-
-
- // *************************************************************
- // FUNCTION FOR LOADING BITMAP
- // *************************************************************
-
- HBITMAP BLDLoadBitmap(HINSTANCE hInstance,char *pBitmapName)
- {
- return LoadBitmap(hInstance,(LPSTR)pBitmapName);
- }
-
-
- // *************************************************************
- // FUNCTIONS FOR DIALOG BOX SCROLLING
- // *************************************************************
-
- void BLDFindCtrlsRightBottom(CWnd *pWnd,int *xRight,int *yBottom)
- {
- BLDFindCtrlsRightBottomDef(pWnd,xRight,yBottom);
- }
-
-
- void BLDCalcScrollRanges(CWnd *pWnd,int *xRange,int *yRange,int xScrolled,
- int yScrolled,int iRightOf,int iBelow)
- {
- BLDCalcScrollRangesDef(pWnd,xRange,yRange,xScrolled,yScrolled,iRightOf,iBelow);
- }
-
-
- BOOL BLDScrollDlg(CWnd *pWnd,UINT message,int nScrlCode,int nPos,int iVertLine,
- int iHorLine,int iVertPage,int iHorPage,int iRightOf,
- int iBelow,BOOL bInvalidate,int *pxScrolled,int *pyScrolled)
- {
- return BLDScrollDlgDef(pWnd, message,nScrlCode,nPos,iVertLine,iHorLine,
- iVertPage,iHorPage,iRightOf,iBelow,bInvalidate,pxScrolled,pyScrolled);
- }
-
-
- // *************************************************************
- // FUNCTION FOR CREATING CONTROLS IN MAIN WINDOW
- // *************************************************************
-
- // Supports Controls in Main window from old versions
- BOOL BLDCreateClientControls (char *pTemplateName, CSimClientDlg* pDlg)
- {
- return BLDCreateClientControlsDef(pTemplateName,pDlg);
- }
-
-
- // *************************************************************
- // FUNCTION SENDING MDI MESSAGES
- // *************************************************************
-
- BOOL BLDSendMDIMessage(CWnd *pWnd,UINT message,int nType)
- {
- return BLDSendMDIMessageDef(pWnd,message,nType);
- }
-
-
- // *************************************************************
- // FUNCTION EXPANDING DIALOG BOX
- // *************************************************************
-
- BOOL BLDSizeDlg(CWnd *pWnd,int xRightOf,int yBelow)
- {
- return BLDSizeDlgDef(pWnd,xRightOf,yBelow);
- }
-
-
- // *************************************************************
- // FUNCTIONS FOR HELP HANDLING
- // *************************************************************
-
-
- BOOL BLDCheckF1HelpKey(BOOL bShift)
- {
- return BLDCheckF1HelpKeyDef(bShift);
- }
-
-
-
- // *************************************************************
- // Member function for Class : CUserScrollBar
- // Base Class : CSimScrollBar
- // Derived from MFC Class : CScrollBar
- // *************************************************************
-
- CUserScrollBar::CUserScrollBar()
- : CSimScrollBar()
- {
- }
-
-
-
- // *************************************************************
- // CUserScrollBar diagnostics
-
- #ifdef _DEBUG
- void CUserScrollBar::AssertValid() const
- {
- CSimScrollBar::AssertValid();
- }
-
- void CUserScrollBar::Dump(CDumpContext& dc) const
- {
- CSimScrollBar::Dump(dc);
- }
-
- #endif //_DEBUG
-
-
-
-
- // *************************************************************
- // Member function for Class : CUserStatic
- // Base Class : CSimStatic
- // Derived from MFC Class : CStatic
- // *************************************************************
-
- CUserStatic::CUserStatic()
- : CSimStatic()
- {
- }
-
-
-
- // *************************************************************
- // CUserStatic diagnostics
-
- #ifdef _DEBUG
- void CUserStatic::AssertValid() const
- {
- CSimStatic::AssertValid();
- }
-
- void CUserStatic::Dump(CDumpContext& dc) const
- {
- CSimStatic::Dump(dc);
- }
-
- #endif //_DEBUG
-
-
-
-
- // *************************************************************
- // Member function for Class : CUserEdit
- // Base Class : CSimEdit
- // Derived from MFC Class : CEdit
- // *************************************************************
-
- CUserEdit::CUserEdit()
- : CSimEdit()
- {
- }
-
-
-
- // *************************************************************
- // CUserEdit diagnostics
-
- #ifdef _DEBUG
- void CUserEdit::AssertValid() const
- {
- CSimEdit::AssertValid();
- }
-
- void CUserEdit::Dump(CDumpContext& dc) const
- {
- CSimEdit::Dump(dc);
- }
-
- #endif //_DEBUG
-
-
-
-
- // *************************************************************
- // Member function for Class : CUserListBox
- // Base Class : CSimListBox
- // Derived from MFC Class : CListBox
- // *************************************************************
-
- CUserListBox::CUserListBox()
- : CSimListBox()
- {
- }
-
-
-
- // *************************************************************
- // CUserListBox diagnostics
-
- #ifdef _DEBUG
- void CUserListBox::AssertValid() const
- {
- CSimListBox::AssertValid();
- }
-
- void CUserListBox::Dump(CDumpContext& dc) const
- {
- CSimListBox::Dump(dc);
- }
-
- #endif //_DEBUG
-
-
-
-
- // *************************************************************
- // Member function for Class : CUserComboBox
- // Base Class : CSimComboBox
- // Derived from MFC Class : CComboBox
- // *************************************************************
-
- CUserComboBox::CUserComboBox()
- : CSimComboBox()
- {
- }
-
-
-
- // *************************************************************
- // CUserComboBox diagnostics
-
- #ifdef _DEBUG
- void CUserComboBox::AssertValid() const
- {
- CSimComboBox::AssertValid();
- }
-
- void CUserComboBox::Dump(CDumpContext& dc) const
- {
- CSimComboBox::Dump(dc);
- }
-
- #endif //_DEBUG
-
-
-
-
- // *************************************************************
- // Member function for Class : CUserButton
- // Base Class : CSimButton
- // Derived from MFC Class : CButton
- // *************************************************************
-
- CUserButton::CUserButton()
- : CSimButton()
- {
- }
-
-
-
- // *************************************************************
- // CUserButton diagnostics
-
- #ifdef _DEBUG
- void CUserButton::AssertValid() const
- {
- CSimButton::AssertValid();
- }
-
- void CUserButton::Dump(CDumpContext& dc) const
- {
- CSimButton::Dump(dc);
- }
-
- #endif //_DEBUG
-
-
-
-
- // *************************************************************
- // Member function for Class : CUserCustom
- // Base Class : CSimCustom
- // Derived from MFC Class : CWnd
- // *************************************************************
-
- CUserCustom::CUserCustom()
- : CSimCustom()
- {
- }
-
-
-
- // *************************************************************
- // CUserCustom diagnostics
-
- #ifdef _DEBUG
- void CUserCustom::AssertValid() const
- {
- CSimCustom::AssertValid();
- }
-
- void CUserCustom::Dump(CDumpContext& dc) const
- {
- CSimCustom::Dump(dc);
- }
-
- #endif //_DEBUG
-
-
-
-
- // *************************************************************
- // Member function for Class : CUserGraphicButton
- // Base Class : CSimGraphicButton
- // Derived from MFC Class : CButton
- // *************************************************************
-
- CUserGraphicButton::CUserGraphicButton()
- : CSimGraphicButton()
- {
-
- };
-
-
-
- void CUserGraphicButton::SimSetGraphicData(char * szInBitmap,BOOL bInBitmap,BOOL bInStretch)
- {
- CSimGraphicButton::SimSetGraphicData(szInBitmap,bInBitmap,bInStretch);
- }
-
-
-
- void CUserGraphicButton::SimSetGraphicData3D(char *szInNormal,char *szInFocus, char *szInSelected,
- char *szInDisabled,BOOL bInBitmap,BOOL bInStretch)
- {
- CSimGraphicButton::SimSetGraphicData3D(szInNormal,szInFocus,
- szInSelected,szInDisabled,bInBitmap,bInStretch);
- }
-
-
-
- void CUserGraphicButton::SimSetGraphicDataBkGrnd(char * szInBitmap,BOOL bInBitmap,BOOL bInStretch)
- {
- CSimGraphicButton::SimSetGraphicDataBkGrnd(szInBitmap,bInBitmap,bInStretch);
- }
-